package com.su02.multi.chainrule;

import java.util.Map;

public interface NaiveFunction {
    Function backward(int id);

    double forward(Map<Integer, Double> vector);

    int size();

    Function add(Function other);

    Function sub(Function other);

    Function mul(Function other);

    Function mul(double x);

    Function pow(double pow);

    Function neg();
}
